﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="StartWebForms.Person.Default"
    MasterPageFile="~/Site.Master" %>

<asp:Content ID="indexTitle" ContentPlaceHolderID="TitleContent" runat="server">
    Persons List
</asp:Content>
<asp:Content ID="indexContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        <asp:Literal ID="ltrMessage" runat="server"></asp:Literal></h2>
    <p>
        <ul>
            <asp:DataList ID="dlPersons" runat="server">
                <ItemTemplate>
                    <li><a href='/person/individualperson/id=<%# DataBinder.Eval(Container.DataItem, "ID") %>'>
                        <%# DataBinder.Eval(Container.DataItem, "Name")%>
                    </a></li>
                </ItemTemplate>
            </asp:DataList>
        </ul>
    </p>
</asp:Content>
